package main.chapter5.inheritance;/**
 * @Author xy
 * @Date 2020/6/14 17:19
 * @Description
 */

/**
 * 文件名称： main.chapter5.inheritance.Manager.java</br>
 * 初始作者： xy</br>
 * 创建日期： 2020/6/14 17:19</br>
 * 功能说明： TODO <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者        日期       修改内容<br/>
 * ================================================<br/>
 * Copyright (c) 2020-2021 .All rights reserved.<br/>
 */
public class Manager extends Employee{
    private double bonus;

    /**
     * @param name
     * @param salary
     * @param year
     * @param month
     * @param day
     */
    public Manager(String name, double salary, int year, int month, int day) {
        super(name, salary, year, month, day);
        bonus=0;
    }

    public double getSalary(){
        double baseSalary = super.getSalary();
        return baseSalary+bonus;
    }

    public void setBonus(double bonus){
        this.bonus = bonus;
    }
}
